def m(e):
    t = {}
    n = ["signData", "encData", "extra"]
    for i in e:
        if i not in n and e[i] is not None:
            t[i] = e[i]



    return t

p = {
    "appCode":"T98HPCGN5ZVVQBS8LZQNOAEXVI9GYHKQ",
    "data":{"keys": ""},
    "encType":"SM4",
    "signType":"SM2",
    "timestamp":"1728565970",
    "version":"1.0.0"
}
print(m(p))

for x in {"x": "y"}:
    print(x)